package com.winning.pmph;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableScheduling//可以在启动类上注解也可以在当前文件
@EnableAsync
@EnableOpenApi
@EnableCaching
@SpringBootApplication(exclude = ElasticsearchDataAutoConfiguration.class)
@ServletComponentScan("com.winning.pmph")
@MapperScan("com.winning.pmph.mapper")
@EnableAspectJAutoProxy(exposeProxy = true)
public class KmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(KmsApplication.class, args);
    }
}
